package cn.wolfcode.luowowo.controller;

import cn.wolfcode.luowowo.util.JsonResult;
import jdk.nashorn.internal.objects.annotations.Getter;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;
import java.util.List;

@RestController
public class TestController {

    // 测试防刷功能
    @GetMapping("/test1")
    public Object test1(){
        return JsonResult.success("进来了----测试防刷功能");
    }

    // 测试防篡改功能
    @GetMapping("/test2")
    public Object test2(String aa, String bb, String cc, String dd, String sign){

        List<String> strings = Arrays.asList(aa, bb, cc, dd, sign);
        return JsonResult.success("进来了----测试防篡改" + strings);
    }

}
